﻿using System;
using System.ComponentModel.DataAnnotations;

namespace IOA.MES.DataAccess.Entity
{
    public class BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int PkId { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public bool Valid { get; set; } = true;

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public int ModifyBy { get; set; }

        /// <summary>
        /// 最后修改人
        /// </summary>
        public DateTime? ModifyTime { get; set; }
    }
}
